package com.twu.biblioteca;

import java.util.LinkedList;
import java.util.List;

public class BookList {

    private final List<Book> books;

    public BookList(List<Book> books) {
        this.books = books;
    }
    public List<String> getOptions() {
        final LinkedList<String> strings = new LinkedList<String>();

        for (Book book : books) {
            strings.add(book.toString());
        }
        return strings;
    }

    public Book get(int bookIndex) {
        return books.get(bookIndex);
    }

    public int size() {
        return books.size();
    }
}
